import { defineStore } from 'pinia';

interface AppState {
  activeDeptObj: object;
}

export const useDeptStore = defineStore({
  id: 'app-dept',
  state: (): AppState => ({
    activeDeptObj: {}
  }),
  getters: {
    getActiveDeptObj(): object {
        return this.activeDeptObj;
    }
  },
  actions: {
    setDept(selectDeptObj: object) {
      this.activeDeptObj = selectDeptObj;
    },
  },
});

